<admintpl file="header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:U('Admin/AppUser/index')}">用户列表</a></li>
		</ul>
		 <form class="well form-search" name="query_form" id="query_form" method="post" action="{:U('Admin/AppUser/index')}">
			账号： 
			<!-- <input type="text" name="mobile" style="width: 120px;" value="{$formParam.mobile}" placeholder="请输入账号...">
			昵称： --> 
			<input type="text" name="userName" style="width: 120px;" value="{$Think.post.userName}" placeholder="请输入账号...">
			性别： 
			<select class="select_2" name="sex" style="width: 65px;">
			    <option >全部</option>
				<option value=0 <if condition="$Think.post.sex heq '0' ">selected</if>>男</option>
				<option value='1' <if condition="$Think.post.sex eq 1 ">selected</if>>女</option>
			</select>
			<input type="button" name="query_form_btn" id="queryBtn" data-action="{:U('Admin/AppUser/index')}" class="btn btn-primary" value="查询" />
		</form> 
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th>账号</th>
					<th>昵称</th>
					<th>手机号</th>
					<th>性别</th>
					<th>积分</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="data" item="vo">
				<tr>
					<td>{$vo.userName}</td>
					<td>{$vo.nickName}</td>
					<td>{$vo.mobilePhone}</td>
					<td><eq name="vo.sex" value="0">男<else/>女</eq></td>
					<td>{$vo.score}</td>
					<td>
						<a href='{:U("Admin/AppUser/detail",array("userId"=>number_format($vo["userId"],0,'','')))}'>查看详细</a>
					</td>
				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__PUBLIC__/js/common.js"></script>
	<script>
	$(document).ready(function(){
		$('input[name="query_form_btn"]').click(function(){
			 $('#query_form').attr('action', $(this).attr('data-action'));
			 $('#query_form').submit();
		});
		
	});
	</script>
</body>
</html>